package ModelLayer;



/**
 * The test class SupplierTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class SupplierTest extends junit.framework.TestCase
{
    /**
     * Default constructor for test class SupplierTest
     */
    public SupplierTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    protected void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    protected void tearDown()
    {
    }

	public void testCreateSupplier()
	{
		ModelLayer.Supplier supplier1 = new ModelLayer.Supplier("Alex", "Agertoften", "Aalborg", 9200, 20887773, "15 dage");
	}

	public void testSetSupplierInformation()
	{
		ModelLayer.Supplier supplier1 = new ModelLayer.Supplier("asd", "das", "qwe", 123, 654, "dad 879");
		supplier1.setAddress("Agertoften");
		supplier1.setCity("Aalborg");
		supplier1.setDeliveryTime("15 dage");
		supplier1.setName("Alex");
		supplier1.setPhoneNumber(20778873);
		supplier1.setZIPCode(9200);
	}



	public void testGetSupplierInformation()
	{
		ModelLayer.Supplier supplier1 = new ModelLayer.Supplier("Alex", "Agertoften", "Aalborg", 9200, 20778873, "15dage");
		assertSame("Agertoften", supplier1.getAddress());
		assertSame("Aalborg", supplier1.getCity());
		assertSame("15dage", supplier1.getDeliveryTime());
		assertSame("Alex", supplier1.getName());
		assertEquals(20778873, supplier1.getPhoneNumber());
		assertEquals(9200, supplier1.getZIPCode());
	}
}




